package com.aphrodite.io.sip.net;

//import java.net.InetAddress;
import java.io.IOException;

/**
 * TcpConnection provides a TCP connection oriented transport service.
 */
public final class TcpConnection extends Thread {
	/** Costructs a new TcpConnection */
	public TcpConnection(TcpSocket socket, long alive_time, TcpConnectionListener listener) {}

	/** Costructs a new TcpConnection */
	public TcpConnection(TcpSocket socket, TcpConnectionListener listener) {
		init(socket, 0, listener);
		start();
	}

	/** Gets the remote IP address */
	public IpAddress getRemoteAddress() {
		return null;
	}

	/** Gets the remote port */
	public int getRemotePort() {
		return 0;
	}

	/** Gets the TcpSocket */
	public TcpSocket getSocket() {
		return null;
	}

	/** Stops running */
	public void halt() {}

	/** Inits the TcpConnection */
	private void init(TcpSocket socket, long alive_time, TcpConnectionListener listener) {}

	/** Whether the service is running */
	public boolean isRunning() {
		return false;
	}

	/** Runs the tcp receiver */
	public void run() {}

	/** Sends data */
	public void send(byte[] buff) throws IOException {}

	/** Sends data */
	public void send(byte[] buff, int offset, int len) throws IOException {}

	/** Gets a String representation of the Object */
	public String toString() {
		return "tcp:not-supported";
	}

}